Optimal. Leaf size=65 \[ -\frac {1}{2} (1-i)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {1-i} \sqrt {x}}{\sqrt {1+x}}\right )-\frac {1}{2} (1+i)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {1+i} \sqrt {x}}{\sqrt {1+x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {924, 95, 214}
\begin {gather*} -\frac {1}{2} (1-i)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {1-i} \sqrt {x}}{\sqrt {x+1}}\right )-\frac {1}{2} (1+i)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {1+i} \sqrt {x}}{\sqrt {x+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 214
Rule 924
Rubi steps
\begin {align*} \int \frac {\sqrt {x}}{\sqrt {1+x} \left (1+x^2\right )} \, dx &=\int \left (-\frac {1}{2 (i-x) \sqrt {x} \sqrt {1+x}}+\frac {1}{2 \sqrt {x} (i+x) \sqrt {1+x}}\right ) \, dx\\ &=-\left (\frac {1}{2} \int \frac {1}{(i-x) \sqrt {x} \sqrt {1+x}} \, dx\right )+\frac {1}{2} \int \frac {1}{\sqrt {x} (i+x) \sqrt {1+x}} \, dx\\ &=-\text {Subst}\left (\int \frac {1}{i-(1+i) x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {1+x}}\right )+\text {Subst}\left (\int \frac {1}{i+(1-i) x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {1+x}}\right )\\ &=-\frac {1}{2} (1-i)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {1-i} \sqrt {x}}{\sqrt {1+x}}\right )-\frac {1}{2} (1+i)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {1+i} \sqrt {x}}{\sqrt {1+x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 0.07, size = 59, normalized size = 0.91 \begin {gather*} -\text {RootSum}\left [16+32 \text {$\#$1}+16 \text {$\#$1}^2+\text {$\#$1}^4\&,\frac {\log \left (-2 x+2 \sqrt {x} \sqrt {1+x}+\text {$\#$1}\right ) \text {$\#$1}^2}{8+8 \text {$\#$1}+\text {$\#$1}^3}\&\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(304\) vs.
\(2(45)=90\).
time = 0.18, size = 305, normalized size = 4.69
method | result | size |
default | \(\frac {\sqrt {\frac {x \left (1+x \right )}{\left (\sqrt {2}-1+x \right )^{2}}}\, \left (\sqrt {2}-1+x \right ) \left (\sqrt {-2+2 \sqrt {2}}\, \arctan \left (\frac {\sqrt {\frac {\left (3 \sqrt {2}-4\right ) x \left (1+x \right ) \left (4+3 \sqrt {2}\right )}{\left (\sqrt {2}-1+x \right )^{2}}}\, \sqrt {-2+2 \sqrt {2}}\, \left (3+2 \sqrt {2}\right ) \left (\sqrt {2}+1-x \right ) \left (3 \sqrt {2}-4\right ) \left (\sqrt {2}-1+x \right )}{4 x \left (1+x \right )}\right ) \sqrt {1+\sqrt {2}}\, \sqrt {2}-2 \sqrt {-2+2 \sqrt {2}}\, \arctan \left (\frac {\sqrt {\frac {\left (3 \sqrt {2}-4\right ) x \left (1+x \right ) \left (4+3 \sqrt {2}\right )}{\left (\sqrt {2}-1+x \right )^{2}}}\, \sqrt {-2+2 \sqrt {2}}\, \left (3+2 \sqrt {2}\right ) \left (\sqrt {2}+1-x \right ) \left (3 \sqrt {2}-4\right ) \left (\sqrt {2}-1+x \right )}{4 x \left (1+x \right )}\right ) \sqrt {1+\sqrt {2}}+4 \arctanh \left (\frac {\sqrt {2}\, \sqrt {\frac {x \left (1+x \right )}{\left (\sqrt {2}-1+x \right )^{2}}}}{\sqrt {1+\sqrt {2}}}\right ) \sqrt {2}-6 \arctanh \left (\frac {\sqrt {2}\, \sqrt {\frac {x \left (1+x \right )}{\left (\sqrt {2}-1+x \right )^{2}}}}{\sqrt {1+\sqrt {2}}}\right )\right ) \sqrt {2}}{4 \sqrt {x}\, \sqrt {1+x}\, \left (3 \sqrt {2}-4\right ) \sqrt {1+\sqrt {2}}}\) | \(305\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 744 vs.
\(2 (37) = 74\).
time = 2.72, size = 744, normalized size = 11.45 \begin {gather*} \frac {1}{8} \cdot 2^{\frac {1}{4}} \sqrt {2 \, \sqrt {2} + 4} {\left (\sqrt {2} - 1\right )} \log \left (-8 \, \sqrt {x + 1} x^{\frac {3}{2}} + 8 \, x^{2} + 2 \, {\left (2^{\frac {1}{4}} \sqrt {x + 1} \sqrt {x} {\left (\sqrt {2} - 2\right )} - 2^{\frac {1}{4}} {\left (\sqrt {2} {\left (x + 1\right )} - 2 \, x\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} + 4 \, x + 4 \, \sqrt {2} + 4\right ) - \frac {1}{8} \cdot 2^{\frac {1}{4}} \sqrt {2 \, \sqrt {2} + 4} {\left (\sqrt {2} - 1\right )} \log \left (-8 \, \sqrt {x + 1} x^{\frac {3}{2}} + 8 \, x^{2} - 2 \, {\left (2^{\frac {1}{4}} \sqrt {x + 1} \sqrt {x} {\left (\sqrt {2} - 2\right )} - 2^{\frac {1}{4}} {\left (\sqrt {2} {\left (x + 1\right )} - 2 \, x\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} + 4 \, x + 4 \, \sqrt {2} + 4\right ) - \frac {1}{2} \cdot 2^{\frac {1}{4}} \sqrt {2 \, \sqrt {2} + 4} \arctan \left (\frac {1}{7} \, {\left (\sqrt {2} {\left (5 \, \sqrt {2} + 6\right )} + 8 \, \sqrt {2} + 4\right )} \sqrt {x + 1} \sqrt {x} - \frac {1}{7} \, \sqrt {2} {\left (\sqrt {2} {\left (5 \, x + 1\right )} + 6 \, x + 4\right )} - \frac {1}{28} \, \sqrt {-8 \, \sqrt {x + 1} x^{\frac {3}{2}} + 8 \, x^{2} - 2 \, {\left (2^{\frac {1}{4}} \sqrt {x + 1} \sqrt {x} {\left (\sqrt {2} - 2\right )} - 2^{\frac {1}{4}} {\left (\sqrt {2} {\left (x + 1\right )} - 2 \, x\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} + 4 \, x + 4 \, \sqrt {2} + 4} {\left (2 \, \sqrt {2} {\left (5 \, \sqrt {2} + 6\right )} - {\left (2^{\frac {3}{4}} {\left (3 \, \sqrt {2} + 5\right )} + 2 \cdot 2^{\frac {1}{4}} {\left (\sqrt {2} + 4\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} + 16 \, \sqrt {2} + 8\right )} - \frac {1}{7} \, \sqrt {2} {\left (8 \, x + 3\right )} - \frac {1}{14} \, {\left ({\left (2^{\frac {3}{4}} {\left (3 \, \sqrt {2} + 5\right )} + 2 \cdot 2^{\frac {1}{4}} {\left (\sqrt {2} + 4\right )}\right )} \sqrt {x + 1} \sqrt {x} - 2^{\frac {3}{4}} {\left (\sqrt {2} {\left (3 \, x + 2\right )} + 5 \, x + 1\right )} - 2 \cdot 2^{\frac {1}{4}} {\left (\sqrt {2} {\left (x + 3\right )} + 4 \, x - 2\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} - \frac {4}{7} \, x - \frac {5}{7}\right ) - \frac {1}{2} \cdot 2^{\frac {1}{4}} \sqrt {2 \, \sqrt {2} + 4} \arctan \left (-\frac {1}{7} \, {\left (\sqrt {2} {\left (5 \, \sqrt {2} + 6\right )} + 8 \, \sqrt {2} + 4\right )} \sqrt {x + 1} \sqrt {x} + \frac {1}{7} \, \sqrt {2} {\left (\sqrt {2} {\left (5 \, x + 1\right )} + 6 \, x + 4\right )} + \frac {1}{28} \, \sqrt {-8 \, \sqrt {x + 1} x^{\frac {3}{2}} + 8 \, x^{2} + 2 \, {\left (2^{\frac {1}{4}} \sqrt {x + 1} \sqrt {x} {\left (\sqrt {2} - 2\right )} - 2^{\frac {1}{4}} {\left (\sqrt {2} {\left (x + 1\right )} - 2 \, x\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} + 4 \, x + 4 \, \sqrt {2} + 4} {\left (2 \, \sqrt {2} {\left (5 \, \sqrt {2} + 6\right )} + {\left (2^{\frac {3}{4}} {\left (3 \, \sqrt {2} + 5\right )} + 2 \cdot 2^{\frac {1}{4}} {\left (\sqrt {2} + 4\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} + 16 \, \sqrt {2} + 8\right )} + \frac {1}{7} \, \sqrt {2} {\left (8 \, x + 3\right )} - \frac {1}{14} \, {\left ({\left (2^{\frac {3}{4}} {\left (3 \, \sqrt {2} + 5\right )} + 2 \cdot 2^{\frac {1}{4}} {\left (\sqrt {2} + 4\right )}\right )} \sqrt {x + 1} \sqrt {x} - 2^{\frac {3}{4}} {\left (\sqrt {2} {\left (3 \, x + 2\right )} + 5 \, x + 1\right )} - 2 \cdot 2^{\frac {1}{4}} {\left (\sqrt {2} {\left (x + 3\right )} + 4 \, x - 2\right )}\right )} \sqrt {2 \, \sqrt {2} + 4} + \frac {4}{7} \, x + \frac {5}{7}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x}}{\sqrt {x + 1} \left (x^{2} + 1\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 375 vs.
\(2 (37) = 74\).
time = 4.03, size = 375, normalized size = 5.77 \begin {gather*} \frac {1}{4} \, {\left (\sqrt {2 \, \sqrt {2} + 2} + \sqrt {2 \, \sqrt {2} - 2}\right )} \arctan \left (\frac {2 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} + 2 \, \sqrt {-\frac {1}{x + 1} + 1}\right )}}{\sqrt {-\sqrt {2} + 2}}\right ) + \frac {1}{4} \, {\left (\sqrt {2 \, \sqrt {2} + 2} + \sqrt {2 \, \sqrt {2} - 2}\right )} \arctan \left (-\frac {2 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} - 2 \, \sqrt {-\frac {1}{x + 1} + 1}\right )}}{\sqrt {-\sqrt {2} + 2}}\right ) - \frac {1}{8} \, {\left (\sqrt {2 \, \sqrt {2} + 2} - \sqrt {2 \, \sqrt {2} - 2}\right )} \log \left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} \sqrt {-\frac {1}{x + 1} + 1} + \sqrt {\frac {1}{2}} - \frac {1}{x + 1} + 1\right ) + \frac {1}{8} \, {\left (\sqrt {2 \, \sqrt {2} + 2} - \sqrt {2 \, \sqrt {2} - 2}\right )} \log \left (-\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} \sqrt {-\frac {1}{x + 1} + 1} + \sqrt {\frac {1}{2}} - \frac {1}{x + 1} + 1\right ) - \frac {1}{4} \, \sqrt {2 \, \sqrt {2} + 2} \arctan \left (\frac {2 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} + 2\right )}}{\sqrt {-\sqrt {2} + 2}}\right ) - \frac {1}{4} \, \sqrt {2 \, \sqrt {2} + 2} \arctan \left (-\frac {2 \, \left (\frac {1}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} - 2\right )}}{\sqrt {-\sqrt {2} + 2}}\right ) - \frac {1}{8} \, \sqrt {2 \, \sqrt {2} - 2} \log \left (\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} + \sqrt {\frac {1}{2}} + 1\right ) + \frac {1}{8} \, \sqrt {2 \, \sqrt {2} - 2} \log \left (-\left (\frac {1}{2}\right )^{\frac {1}{4}} \sqrt {\sqrt {2} + 2} + \sqrt {\frac {1}{2}} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.49, size = 1610, normalized size = 24.77 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________